export const useStateColor = function (state){
  let stateClassName
  const obj = {
    '进行中':'primary',
    '未进行':'info',
    '已完工(手动)':'success',
    '已完工(自动)':'success'
  }
  stateClassName = obj[state];
  return stateClassName
}

export const useApprovalBillState = function (state){
  let stateClassName
  const obj = {
    '0':'未生效',
    '1':'已生效'
  }
  stateClassName = obj[state];
  return stateClassName
}

export const useCommonStateColor2 = function (state){
  let stateClassName
  const obj = {
    '0':'error',
    '1':'success',
  }
  stateClassName = obj[state];
  return stateClassName
}

export const useCommonStateColor2GG = function (state){
  let stateClassName
  const obj = {
    '0':'info',
    '1':'success',
  }
  stateClassName = obj[state];
  return stateClassName
}

export const useCommonStateColor2GGR = function (state){
  let stateClassName
  const obj = {
    '1':'info',
    '0':'success',
  }
  stateClassName = obj[state];
  return stateClassName
}

export const useCommonStateColor3R = function (state){
  let stateClassName
  const obj = {
    '0':'error',
    '1':'warn',
    '2':'success',
  }
  stateClassName = obj[state];
  return stateClassName
}

export const useCommonStateColor3 = function (state){
  let stateClassName
  const obj = {
    '0':'info',
    '1':'warn',
    '2':'success',
  }
  stateClassName = obj[state];
  return stateClassName
}

export const useCommonStateColor3BRG = function (state){
  let stateClassName
  const obj = {
    '0':'info',
    '1':'error',
    '2':'success',
  }
  stateClassName = obj[state];
  return stateClassName
}

export const useCommonStateColor4 = function (state){
  let stateClassName
  const obj = {
    '0':'info',
    '1':'warn',
    '2':'primary',
    '3':'success'
  }
  stateClassName = obj[state];
  return stateClassName
}
